package com.example.kingdee.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取项目相关配置
 *
 * @author ruoyi
 */
@Component
@ConfigurationProperties(prefix = "ruoyi")
public class RuoYiConfig {

    /**
     * 请求地址
     */
    private String serverUrl;

    /**
     * 开放平台地址
     */
    private String openWebUrl;

    /**
     * 开放平台api地址
     */
    private String openApiUrl;

    public String getOpenApiUrl() {
        return openApiUrl;
    }

    public void setOpenApiUrl(String openApiUrl) {
        this.openApiUrl = openApiUrl;
    }

    /**
     * 应用的appKey
     */
    private String appKey;

    /**
     * 应用的appSecret
     */
    private String appSecret;

    /**
     * 回调验证是否开启
     */
    private Boolean signature;

    public String getServerUrl() {
        return serverUrl;
    }

    public void setServerUrl(String serverUrl) {
        this.serverUrl = serverUrl;
    }

    public String getOpenWebUrl() {
        return openWebUrl;
    }

    public void setOpenWebUrl(String openWebUrl) {
        this.openWebUrl = openWebUrl;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public Boolean getSignature() {
        return signature;
    }

    public void setSignature(Boolean signature) {
        this.signature = signature;
    }
}
